
<script setup>
// import {ref} from 'vue';
import { useRouter } from "vue-router";
const router = useRouter();

//方法
function Announcement() {//公告
  router.push({ path: "/index/shouye" });
}

function PersonnelManagement() {//人员管理
  router.push({ path: "/index/people" });
}
function index() {//首页
  router.push({ path: "/index/gonggao" });
}
function DepartmentManagement() {//部门管理
  router.push({ path: "/index/Department" });
}
</script>

<template>
  <div class="common-layout">
    <el-container>
      <el-header class="box">旅游管理后台</el-header>
      <el-container>
        <el-aside class="box1">
          <p @click="index">服务维度数据</p>
          <p @click="DepartmentManagement">部门管理</p>
          <p @click="PersonnelManagement">人员管理</p>
          <p @click="Announcement">公告</p>
        </el-aside>
        <el-main class="box2">
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>

</template>
<style>
.box1{
  width: 200px;
  height: 100%;
  background-color: #d3dce6;
  padding: 20px;
}
p:hover {
  color: #409eff;
  font-weight: bold;
}
.box{
  font-size: 50px;
  color: white;
  font-family: 华文行楷;
}
p:hover {
  cursor: pointer;
}
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: skyblue
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
.box {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100px;
  width: 100%;
  background-color: skyblue
}
.box1 {
  width: 200px;
  height:2000px;
  /* background-color: rgb(0, 0, 0); */
}
</style>